package cn.tedu.store.commons.pojo.product.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 添加品牌的DTO类
 *
 * @author RelentlessFlow
 * @version 0.0.1
 */
@Data
public class BrandAddNewDTO implements Serializable {

    /**
     * 品牌名称
     */
    @ApiModelProperty(value = "品牌名称", required = true, example = "某品牌")
    @NotNull(message = "必须填写品牌名称")
    private String name;

    /**
     * 品牌名称的拼音
     */
    @ApiModelProperty(value = "品牌名称的拼音", required = true, example = "pinyin")
    @NotNull(message = "必须填写品牌名称的拼音")
    private String pinyin;

    /**
     * 品牌logo的URL
     */
    @ApiModelProperty(value = "品牌logo", required = true, example = "")
    @NotNull(message = "必须填写品牌logo")
    private String logo;

    /**
     * 品牌简介
     */
    @ApiModelProperty(value = "品牌简介", required = true, example = "某品牌的简介")
    @NotNull(message = "必须填写品牌简介")
    private String description;

    /**
     * 关键词列表，各关键词使用英文的逗号分隔
     */
    @ApiModelProperty(value = "品牌关键词", required = true, example = "高品质,进口")
    @NotNull(message = "必须填写品牌关键词列表")
    private String keywords;

    /**
     * 自定义排序序号
     */
    @ApiModelProperty(value = "自定义排序序号", required = true, example = "25")
    @Range(min = 1,max = 255,message = "必须在[1,255]区间内")
    private Integer sort;

    /**
     * 是否启用，1=启用，0=未启用
     */
    @ApiModelProperty(value = "是否启用，1=启用，0=未启用", example = "1", required = true)
    private Integer enable;

    /**
     * 是否推荐首页，1=推荐，0=不推荐
     */
    @ApiModelProperty(value = "是否推荐首页，1=推荐，0=不推荐", example = "1", required = true)
    private Integer isRecommend;

}

